package com.sdut.encryption.service.imp;

import com.sdut.encryption.dao.UserDao;
import com.sdut.encryption.pojo.User;
import com.sdut.encryption.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public User findOne(String userCode, String userPass) {
        return userDao.selectOne(userCode, userPass);
    }
}
